﻿using System;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;

namespace DualControl.Migrations
{
    public partial class companyinfo : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "CompanyInfos",
                columns: table => new
                {
                    Id = table.Column<int>(nullable: false)
                        .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
                    CompanyFullName = table.Column<string>(nullable: true),
                    Longitude = table.Column<double>(nullable: true),
                    Latitude = table.Column<double>(nullable: true),
                    Address = table.Column<string>(nullable: true),
                    Safetyofficer = table.Column<int>(nullable: true),
                    EmployeeNumber = table.Column<int>(nullable: true),
                    SpecialOperationNumber = table.Column<int>(nullable: true),
                    LegalRepresentative = table.Column<string>(nullable: true),
                    City = table.Column<string>(nullable: true),
                    ZipCode = table.Column<string>(nullable: true),
                    CompanyPhone = table.Column<string>(nullable: true),
                    Contact = table.Column<string>(nullable: true),
                    ContactPhone = table.Column<string>(nullable: true),
                    ContactFixedPhone = table.Column<string>(nullable: true),
                    EnterpriseClassification = table.Column<string>(nullable: true),
                    HazardousWorkPlaceType = table.Column<int>(nullable: true),
                    ProductionLicense = table.Column<string>(nullable: true),
                    ExpireTime = table.Column<DateTime>(nullable: false),
                    MiningMethod = table.Column<string>(nullable: true),
                    ProductionScale = table.Column<string>(nullable: true),
                    HarmfulFactors = table.Column<string>(nullable: true),
                    BriefIntroduction = table.Column<string>(nullable: true),
                    TenantId = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_CompanyInfos", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "CompanyInfos");
        }
    }
}
